/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ElectricKettle {
    static categoryCode = '010050010';

    static categoryName = '电热水壶';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ElectricKettle.categoryCode;
    }

    get categoryName() {
        return ElectricKettle.categoryName;
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'aKhI0PcId',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'agiRKkgCl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'aINcJ9lSL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'agzzRGdPZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemperature(params) {
        return command({
            method: 'getTargetTemperature',
            methodId: 'ag6DAWido',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'aKAs3Lzl1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkTime(params) {
        return command({
            method: 'getWorkTime',
            methodId: 'aKo4CArnK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'aIObjr8oS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'aDiNMHWuW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'aD5xCJrgV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'aIokpw5qR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemperature(params) {
        return command({
            method: 'setTargetTemperature',
            methodId: 'aD0JoSazm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkTime(params) {
        return command({
            method: 'setWorkTime',
            methodId: 'aIwo4lxG5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ElectricKettle;
